package com.smallkingson.ylib.db.bean;

import android.util.Pair;

import com.smallkingson.ylib.core.utils.YMath;

/**
 * Created by Administrator on 2016/12/13.
 */

public class DefaultIdModel implements KeyObtainable{
    public String id;
    public DefaultIdModel() {
        id =YMath.randomId();
    }
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    @Override
    public Pair<String, Object>[] obtainKey() {
        return new Pair[]{
                new Pair("id",id)
        };
    }

    @Override
    public String toString() {
        return "DefaultIdModel{" +
                "id='" + id + '\'' +
                '}';
    }
}
